/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background: linear-gradient(135deg, #e0e7ff 0%, #fae8ff 25%, #fef3ff 50%, #dbeafe 75%, #e0e7ff 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  font-size: 18px;
  position: relative;
  overflow-x: hidden;
}

/* 背景层1：动态渐变光晕 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
  animation: glowMove 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* 背景层2：浮动气泡 */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle, rgba(139, 92, 246, 0.15) 2px, transparent 2px),
    radial-gradient(circle, rgba(236, 72, 153, 0.15) 2px, transparent 2px),
    radial-gradient(circle, rgba(59, 130, 246, 0.15) 2px, transparent 2px),
    radial-gradient(circle, rgba(16, 185, 129, 0.15) 1.5px, transparent 1.5px);
  background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px;
  background-position: 0 0, 50px 50px, 100px 100px, 150px 150px;
  animation: bubbleFloat 30s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowMove {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  25% { 
    transform: translate(50px, -30px) scale(1.1);
    opacity: 0.8;
  }
  50% { 
    transform: translate(-30px, 50px) scale(0.95);
    opacity: 1;
  }
  75% { 
    transform: translate(30px, 30px) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes bubbleFloat {
  0% { 
    background-position: 0 0, 50px 50px, 100px 100px, 150px 150px;
  }
  100% { 
    background-position: 0 -200px, 50px -250px, 100px -300px, 150px -180px;
  }
}

/* 主色调 - 深色渐变系 */
:root {
  --primary-color: #8b5cf6;
  --primary-dark: #7c3aed;
  --secondary-color: #ec4899;
  --secondary-dark: #db2777;
  --accent-color: #3b82f6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #6366f1;
  --text-primary: #1f2937;
  --text-regular: #374151;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --bg-color: #f3f4f6;
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --shadow-primary: 0 10px 40px rgba(139, 92, 246, 0.3);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* Element Plus 主题定制 */
.el-button--primary {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  box-shadow: var(--shadow-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.el-button--primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.el-button--primary:hover::before {
  width: 300px;
  height: 300px;
}

.el-button--primary:hover,
.el-button--primary:focus {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.el-button--success {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border: none;
  color: #fff;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.el-button--success:hover,
.el-button--success:focus {
  background: linear-gradient(135deg, #059669 0%, #0891b2 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

/* 卡片样式 */
.page-container {
  padding: 20px;
  min-height: calc(100vh - 60px);
  position: relative;
  z-index: 1;
}

.content-card {
  margin-bottom: 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
  transition: all 0.4s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(139, 92, 246, 0.25);
}

/* 按钮最小尺寸 */
.el-button {
  min-width: 90px;
  min-height: 48px;
  font-size: 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* 标题样式 */
.page-title {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* 表单样式 */
.el-form-item__label {
  font-size: 18px;
  color: var(--text-regular);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7c3aed 0%, #db2777 100%);
}

/* 选中文本样式 */
::selection {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: cornflowerblue;
}

::-moz-selection {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: white;
}

/* 全局装饰元素 */
.page-container::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 25%);
  animation: floatPattern 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatPattern {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-30px, 30px) rotate(240deg); }
}

/* 卡片加载动画 */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-card {
  animation: cardFadeIn 0.6s ease-out;
}

/* 响应式 */
@media (max-width: 768px) {
  .page-container {
    padding: 10px;
  }
  
  body {
    animation: none;
  }
}
